<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>测试1</title>
</head>
<body>
    <span>测试1</span>
    <a href="#" sec:authorize="hasRole('ROLE_USER_UPDATE')">更新用户</a>
    <a href="#" sec:authorize="hasRole('ROLE_USER_ADD')">增加用户</a>
</body>
</html>